
package framework.model;

public class Person extends Customer implements IPerson {

    private String birthDate;
    //
    public Person(String name, String email, Address address, String birthdate) {
        super(name, email, address);
        this.birthDate = birthdate;
    }

    @Override
    public String getField(String key) {
        if (Constant.A_BIRTHDAY.equals(key)) {
            return birthDate;
        } else {
            return super.getField(key);
        }
    }

    @Override
    public String getType() {
        return Constant.CTYPE_PERSONAL;
    }

}
